package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Date;

import com.wyzz.hr.base.BaseDomain;
import com.wyzz.hr.pojo.Emphistoryedu;
import com.wyzz.hr.pojo.Employee;

public abstract class BaseEmphistoryedu extends BaseDomain implements
		Serializable {

	public BaseEmphistoryedu() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmphistoryedu(String eheId) {
		hashCode = 0x80000000;
		setEheId(eheId);
		initialize();
	}

	protected void initialize() {
	}

	public String getEheId() {
		return eheId;
	}

	public void setEheId(String eheId) {
		this.eheId = eheId;
		hashCode = 0x80000000;
	}

	public Date getEheDateStart() {
		return eheDateStart;
	}

	public void setEheDateStart(Date eheDateStart) {
		this.eheDateStart = eheDateStart;
	}

	public Date getEheDateEnd() {
		return eheDateEnd;
	}

	public void setEheDateEnd(Date eheDateEnd) {
		this.eheDateEnd = eheDateEnd;
	}

	public String getEheSchool() {
		return eheSchool;
	}

	public void setEheSchool(String eheSchool) {
		this.eheSchool = eheSchool;
	}

	public String getEheMajor() {
		return eheMajor;
	}

	public void setEheMajor(String eheMajor) {
		this.eheMajor = eheMajor;
	}

	public String getEheDegree() {
		return eheDegree;
	}

	public void setEheDegree(String eheDegree) {
		this.eheDegree = eheDegree;
	}

	public String getEheCreateBy() {
		return eheCreateBy;
	}

	public void setEheCreateBy(String eheCreateBy) {
		this.eheCreateBy = eheCreateBy;
	}

	public Date getEheCreateDate() {
		return eheCreateDate;
	}

	public void setEheCreateDate(Date eheCreateDate) {
		this.eheCreateDate = eheCreateDate;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Emphistoryedu))
			return false;
		Emphistoryedu emphistoryedu = (Emphistoryedu) obj;
		if (null == getEheId() || null == emphistoryedu.getEheId())
			return false;
		else
			return getEheId().equals(emphistoryedu.getEheId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getEheId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getEheId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public String getEheLastChangeBy() {
		return eheLastChangeBy;
	}

	public void setEheLastChangeBy(String eheLastChangeBy) {
		this.eheLastChangeBy = eheLastChangeBy;
	}

	public Date getEheLastChangeTime() {
		return eheLastChangeTime;
	}

	public void setEheLastChangeTime(Date eheLastChangeTime) {
		this.eheLastChangeTime = eheLastChangeTime;
	}

	public String getEheAttachment() {
		return eheAttachment;
	}

	public void setEheAttachment(String eheAttachment) {
		this.eheAttachment = eheAttachment;
	}

	public String getEheComments() {
		return eheComments;
	}

	public void setEheComments(String eheComments) {
		this.eheComments = eheComments;
	}

	public static String REF = "Emphistoryedu";
	public static String PROP_EHE_DEGREE = "eheDegree";
	public static String PROP_EMPLOYEE = "employee";
	public static String PROP_EHE_CREATE_DATE = "eheCreateDate";
	public static String PROP_EHE_DATE_START = "eheDateStart";
	public static String PROP_EHE_SCHOOL = "eheSchool";
	public static String PROP_EHE_CREATE_BY = "eheCreateBy";
	public static String PROP_EHE_MAJOR = "eheMajor";
	public static String PROP_EHE_DATE_END = "eheDateEnd";
	public static String PROP_EHE_ATTATCHMENT = "eheAttachment";
	public static String PROP_EHE_ID = "eheId";
	public static String PROP_EHE_LAST_CHANGE_BY = "eheLastChangeBy";
	public static String PROP_EHE_LAST_CHANGE_TIME = "eheLastChangeTime";
	public static String PROP_EHE_COMMENTS = "eheComments";
	private int hashCode;
	private String eheId;
	private Date eheDateStart;
	private Date eheDateEnd;
	private String eheSchool;
	private String eheMajor;
	private String eheDegree;
	private String eheCreateBy;
	private Date eheCreateDate;
	private String eheLastChangeBy;
	private Date eheLastChangeTime;
	private String eheAttachment;
	private String eheComments;
	private Employee employee;

}
